import GameLogic as BGL
cont = BGL.getCurrentController()
owner = cont.owner
mouse = cont.sensors["movement"] 
owner.position = mouse.raySource

#You must have 2 sensors 
#Mouse over any, which needs to match the name in the code - This case "movement"
#and an Always, both need pulse mode "true"